<template>
  <div class="breadcrumb">
    <span v-for="(item, index) in $route.matched" :key="index">
      {{ item.meta.breadcrumb }}
      <span v-if="index < $route.matched.length - 1">-></span>
    </span>
  </div>
</template>

<script>
export default {
  mounted() {
    console.log(this.$route);
  },
};
</script>

<style lang="less" scoped>
.breadcrumb {
  padding-bottom: 20px;
  color: #555;
}
</style>
